<?php require_once(__DOCROOT__ . __SUBDIRECTORY__ . '/view/shared/layout.header.tpl.php'); ?>

<section id="content" class="padcontent4">
    <?php $this->RenderBegin(); ?>
    <div class="container_24">
        <div class="main"><h1><?php $this->objEditableArray['main_title']->Render(); ?></h1></div>
        <div class="wrapper">
            <div class="grid_24">
                <p><?php $this->objEditableArray['main_message']->Render(); ?></p>
                <iframe width="950" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php _p($this->objContact->GoogleMapsUrl); ?>"></iframe>
            </div>
        </div>
        <div class="line padbot2"></div>
        <div class="wrapper padtop4">
            <div class="grid_13 suffix_1">                
                <?php $this->objBalloon->Render(); ?>
                <fieldset>
                    <label class="name">
                        <?php $this->txtName->RenderWithError(); ?>
                    </label>
                    <label class="email">
                        <?php $this->txtEmail->RenderWithError(); ?>
                    </label>
                    <label class="phone">
                        <?php $this->txtPhone->RenderWithError(); ?>
                    </label>
                    <label class="message">
                        <?php $this->txtMessage->RenderWithError(); ?>
                    </label>
                    <div class="buttons">
                        <span><button type="reset" class="button">reset</button></span>
                        <span><?php $this->btnSend->Render(); ?></span>
                    </div>
                </fieldset>
            </div>
            <div class="grid_10">
                <address class="address_contact">
                    <p><span class="title3">Felix Ayala Carpinteria.</span></p>
                    <p>
                        <?php _p($this->objContact->Street); ?>,<br>
                        <?php _p($this->objContact->City); ?>, <?php _p($this->objContact->State); ?> <?php _p($this->objContact->Zipcode); ?>
                    </p>
                    <p>
                        <?php foreach ($this->objPhoneArray as $objPhone) { ?>
                            <?php if ($objPhone === reset($this->objPhoneArray)) { ?>
                                <span><strong>Telephone:</strong></span><?php _p($objPhone->Number); ?><br/>
                            <?php } else { ?>
                                <span>&nbsp;</span><?php _p($objPhone->Number); ?><br/>
                            <?php } ?>
                        <?php } ?>
                    </p>
                    <p>
                        <?php foreach ($this->objEmailArray as $objEmail) { ?>
                            <?php if ($objEmail === reset($this->objEmailArray)) { ?>
                                <span><strong>Email:</strong></span><a href="mailto:<?php _p($objEmail->Email); ?>"><?php _p($objEmail->Email); ?></a><br/>
                            <?php } else { ?>
                                <span>&nbsp;</span><a href="mailto:<?php _p($objEmail->Email); ?>"><?php _p($objEmail->Email); ?></a><br/>
                            <?php } ?>
                        <?php } ?>
                    </p>
                </address>
            </div>
        </div>
    </div>
    <?php $this->RenderEnd(); ?>
</section>

<?php require_once(__DOCROOT__ . __SUBDIRECTORY__ . '/view/shared/layout.footer.tpl.php'); ?>